package cn.edu.ujn.project.supermarket.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import cn.edu.ujn.project.common.annotation.Excel;
import cn.edu.ujn.project.common.core.domain.BaseEntity;

/**
 * 商品信息对象 goods_infor
 * 
 * @author zhaomh
 * @date 2023-11-14
 */
public class GoodsInfor extends BaseEntity
{
    protected static final long serialVersionUID = 1L;

    /** 商品名称 */
    @Excel(name = "商品名称")
    protected String name;

    /** 商品条码 */
    protected String barCode;

    /** 价格 */
    @Excel(name = "价格")
    protected Double price;

    /** 进价 */
    @Excel(name = "进价")
    protected Double inportPrice;

    /** 图片路径 */
    @Excel(name = "图片路径")
    protected String picturePath;

    /** 余量 */
    @Excel(name = "余量")
    protected Integer quantity;

    /** 当前状态 */
    @Excel(name = "当前状态")
    protected String condition;

    public GoodsInfor() {
		super();
	}

	public GoodsInfor(String name, String barCode, Double price, Double inportPrice, String picturePath,
			Integer quantity, String condition) {
		super();
		this.name = name;
		this.barCode = barCode;
		this.price = price;
		this.inportPrice = inportPrice;
		this.picturePath = picturePath;
		this.quantity = quantity;
		this.condition = condition;
	}
	
	public GoodsInfor(GoodsInfor g) {
		super();
		this.name = g.name;
		this.barCode = g.barCode;
		this.price = g.price;
		this.inportPrice = g.inportPrice;
		this.picturePath = g.picturePath;
		this.quantity = g.quantity;
		this.condition = g.condition;
	}

	public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setBarCode(String barCode) 
    {
        this.barCode = barCode;
    }

    public String getBarCode() 
    {
        return barCode;
    }
    public void setPrice(Double price) 
    {
        this.price = price;
    }

    public Double getPrice() 
    {
        return price;
    }
    public void setInportPrice(Double inportPrice) 
    {
        this.inportPrice = inportPrice;
    }

    public Double getInportPrice() 
    {
        return inportPrice;
    }
    public void setPicturePath(String picturePath) 
    {
        this.picturePath = picturePath;
    }

    public String getPicturePath() 
    {
        return picturePath;
    }
    public void setQuantity(Integer quantity) 
    {
        this.quantity = quantity;
    }

    public Integer getQuantity() 
    {
        return quantity;
    }
    public void setCondition(String condition) 
    {
        this.condition = condition;
    }

    public String getCondition() 
    {
        return condition;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("name", getName())
            .append("barCode", getBarCode())
            .append("price", getPrice())
            .append("inportPrice", getInportPrice())
            .append("picturePath", getPicturePath())
            .append("quantity", getQuantity())
            .append("condition", getCondition())
            .toString();
    }
}
